//
//  ZLMainScrollViewController.m
//  MapleKit_Example
//
//  Created by 赵磊 on 2020/2/15.
//  Copyright © 2020 itzhaolei. All rights reserved.
//

#import "ZLMainScrollViewController.h"

@interface ZLMainScrollViewController ()

@end

@implementation ZLMainScrollViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = UIColor.whiteColor;
    
    self.toolBar.frame = CGRectMake(0, 100.0, UIScreen.mainScreen.bounds.size.width, 44.0);
    self.titles = @[@"综合",
                    @"用户",
                    @"小视频",
                    @"视频",
                    @"课程",
                    @"商品",
                    @"活动"];
    self.viewControllers = @[@"UIViewController",
                            @"UIViewController",
                            @"UIViewController",
                            @"UIViewController",
                            @"UIViewController",
                            @"UIViewController",
                            @"UIViewController"];
    //修改工具条的属性
    ZLScrollToolBarConfig *config = [ZLScrollToolBarConfig defaultConfig];
    config.itemSpace = 30.0;
    config.trackBarBounds = CGRectMake(0, 0, 20.0, 3.0);
    config.trackBarColor = UIColor.redColor;
    config.itemDefaultFont = [UIFont systemFontOfSize:16.0];
    config.itemDefaultColor = UIColor.grayColor;
    config.itemSelectedFont = [UIFont boldSystemFontOfSize:16.0];
    config.itemSelectedColor = UIColor.blackColor;
    [self resetConfig:config];
    self.actionIndex = 0;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
